
layui.use(['layer','laydate'], function(){

});

var wnMachineDeviceLinkConsoleGrid =new consoleGrid({table_id:"wnMachineDeviceLink"});
wnMachineDeviceLinkConsoleGrid.init();
function wnMachineDeviceLinkTableOperate(value){
return "<button type='button' class='btn btn-xs btn-default command-edit' onclick='consoleOpenWindow(\"wnMachineDeviceLink\",\"/console/wn_machine_device_link/edit?id="+value+"\",\"编辑\")'><span class='glyphicon glyphicon-pencil'></span></button> ";
}
function wnMachineDeviceLinkLoadParam(params){
params.query=wnMachineDeviceLinkQueryString();
return params;
}
function wnMachineDeviceLinkQueryString() {
var objQuery = new Object();
    objQuery.deviceId=$('#deviceId').val()==''?null:$('#deviceId').val(); 
     objQuery.machineId=$('#machineId').val()==''?null:$('#machineId').val(); 
 
var queryString = JSON.stringify(objQuery);
return queryString;
}

